home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / bindings / fun / global-ref < prev    next >
Encoding:
Text File  |  1996-09-27  |  4.4 KB  |  128 lines

  1. @{{{}}}
  2. @{{{  CommonUsedReferences
  3. @if-using ( regexp-reference )
  4. @{{{  @regexp Origami Regular Expressions
  5. Origami supports regular expression search and replace. The syntax widely
  6. conforms POSIX extended or basic regular expressions.
  7.  
  8. @{{{  Character Match
  9. @ref-start-tbl Basic 10 Extended 10 Matches 42
  10. <char> @@ <char> @@ <char>, if not a special character
  11. \<char> @@ \<char> @@ <char>, if a special character
  12. . @@ . @@ any character
  13. ^ @@ ^ @@ start of line, if at begin of exp.
  14. $ @@ $ @@ end of line, if at end of exp.
  15. [<class>] @@ [<class>] @@ any char in <class>
  16. [^<class>] @@ [^<class>] @@ any char not in <class>
  17. @@ @@ <class> is a list of
  18. @@ @@ 1) <char>
  19. @@ @@ 2) <char>-<char>
  20. @@ @@ 3) [:<set>:] (*)
  21. @ref-end-tbl
  22. @ref-start-item (*)
  23. <set> can be `alpha', `upper', `lower', `digit', `xdigit', `alnum',
  24. `blank', `space', `print', `cntrl', `graph' or `punct'.
  25. See your local ctype documentation for detailed information.
  26. @ref-end-item
  27. @}}}
  28. @{{{  Complex Expressions
  29. @ref-start-tbl Basic 10 Extended 10 Matches(*) 42
  30. <e1> <e2> @@ <e1> <e2> @@ concatenation of strings <s1> <s2>
  31. \(<e>\) @@ (<e>) @@ <s>, used for grouping and \x in replacement
  32. <e1>\|<e2> @@ <e1>|<e2> @@ <s1> or <s2>
  33. <e>\+ @@ <e>+ @@ one or more strings, matching <e>
  34. <e>\? @@ <e>? @@ zero on one string, matching <e>
  35. <e>* @@ <e>* @@ zero or more strings, matching <e>
  36. <e>\{<n>\} @@ <e>{<n>} @@ <n> strings, matching <e>
  37. <e>\{<n>,<m>\} @@ <e>{<n>,<m>} @@ <n> to <m> strings, matching <e>
  38. \!<e> @@ !<e> @@ if at begin of line:
  39. @@ @@ next line, not matching <e>
  40. @ref-end-tbl
  41. @ref-start-item (*)
  42. <e>,<e1> and <e2> are regular expressions and strings <s>,<s1> and <s2>
  43. are strings, matching the corresponding expressions. <n> and <m> are integers.
  44. @ref-end-item
  45. @}}}
  46. @{{{  Replace Expressions
  47. In regular expression replace, the following special expressions are allowed
  48. (any character, not used for special purpose, can be used for itself):
  49.  
  50. @ref-start-tbl Expression 10 Meaning(*) 52
  51. \<x> @@ the <x>-th group in the search pattern
  52. \u<x> @@ the <x>-th group, all characters uppercase
  53. \l<x> @@ the <x>-th group, all characters lowercase
  54. \{<x><e>} @@ <s> length limited by length of <x>-th group  (**)
  55. \?<x><e>} @@ <s>, if the <x>-th group matches
  56. \!<x><e>} @@ <s>, if the <x>-th group does not match
  57. \} @@ }
  58. \\ @@ \
  59. @ref-end-tbl
  60. @ref-start-item (*)
  61. <x> can be 0 .. 9 and g10 .. g16. The <x>-th group is the part of the
  62. matching string, matched by the part of the regular expressions in the
  63. <x>-th pair of (). 0 is used for the complete string. <e> is a replace
  64. expression and <s> the corresponding string.
  65. @ref-end-item
  66. @ref-start-item (**)
  67. For short strings <s>, the last character will be used for padding. Use
  68. `\0' as last character to prevent padding.
  69. @ref-end-item
  70. @}}}
  71. @}}}
  72. @fi
  73. @if-using ( cmd-reference )
  74. @{{{  @cmd-opt Origami Command Line Options
  75. @ref-start-tbl Option 12 Function 52
  76.   -a delay @@ specify time between auto-saves
  77.   @@ (1<=delay<=60,default=8)
  78.   -A @@ open the list of files, instead of first file
  79.   -C @@ disable copyright message
  80.   -D @@ dump on crash
  81.   -d dspmode @@ specify display mode (*)
  82.   -e @@ echoing keyboard input on
  83.   -h @@ show available command line arguments
  84.   -i @@ show ctrl-chars inverse
  85.   -k name @@ specify other rc-file
  86.   -K state @@ choose keypad mode
  87.   @@ N -> numerical
  88.   @@ A -> application
  89.   -l number @@ first line in file
  90.   -m name @@ marks for fold-display
  91.   -M marks @@ like -m, but give strings directly
  92.   -n @@ load files without fold-parsing
  93.   -N lines @@ specify size of virtual line handling buffer
  94.   -o @@ start in overwrite-mode
  95.   -O value @@ pass data to OCL
  96.   -p @@ use c-preprocessor-mode
  97.   -P @@ do not open control terminal, if stdin isn't
  98.   -R rcpath @@ pathlist for rc,help and msg-file
  99.   -S cmd @@ use cmd as shell
  100.   @@ pipe-commands are disabled
  101.   -t width @@ specify the size of tabs
  102.   -T name @@ specify window name, after exiting Origami
  103.   -v @@ start in view-mode
  104.   -V @@ verbose-mode
  105.   -W name @@ display name in statusline
  106.   -X string @@ specify OS-dependent stuff
  107.   -Z @@ disable suspend-origami
  108. @ref-end-tbl
  109.  
  110. @ref-start-item *
  111. dspmode is a sequence of:
  112. @ref-start-tbl Code 5 Meaning 48
  113. o @@ octal display (C-?k: \177)
  114. d @@ decimal display (C-?: \d127)
  115. h @@ hexadecimal display (C-?: \7F)
  116. m @@ mark control characters
  117. i @@ inverse control characters
  118. n @@ numbered control characters
  119. p @@ normal characters display
  120. 8 @@ numbered display of 8-bit characters
  121. a @@ numbered character display
  122. t tab @@ specify tab width (tab<=0: tab like control)
  123. @ref-end-tbl
  124. @ref-end-item
  125. @}}}
  126. @fi
  127. @}}}
  128.